package com.fzy.designPattern.chain;


import com.fzy.designpattern.chain.impl2.ConcreteHandler;
import com.fzy.designpattern.chain.impl2.Handler;

public class ChainTest2 {

    public static void main(String[] args) {
        //组装责任链
        Handler handler1 = new ConcreteHandler();
        Handler handler2 = new ConcreteHandler();
        handler1.setSuccessor(handler2);
        //提交请求
        handler1.handleRequest();
    }

}
